package com.aier.classes.entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Classes entity. @author MyEclipse Persistence Tools
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "homework_comment_reply", catalog = "abc")
public class HomeworkCR implements java.io.Serializable {

    // 回复主键
    private Long crhid;
    // 评论id
    private Long chid;
    // 回复人的用户id
    private Long uid;
    // 职务+名称或学生名+关系
    private String cname;
    // 内容
    private String content;
    // 回复时间
    private Timestamp cdate;
    
    private String headimg;
    
    /** default constructor */
    public HomeworkCR() {
    }

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "crhid", unique = true, nullable = false)
    public Long getCrhid() {
        return crhid;
    }

    public void setCrhid(Long crhid) {
        this.crhid = crhid;
    }

    @Column(name = "chid")
    public Long getChid() {
        return chid;
    }

    public void setChid(Long chid) {
        this.chid = chid;
    }

    @Column(name = "uid")
    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    @Column(name = "cname")
    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }
    @Column(name = "content")
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    @Column(name = "cdate")
    public Timestamp getCdate() {
        return cdate;
    }

    public void setCdate(Timestamp cdate) {
        this.cdate = cdate;
    }

    public String getHeadimg() {
        return headimg;
    }

    public void setHeadimg(String headimg) {
        this.headimg = headimg;
    }

}